home *** CD-ROM | disk | FTP | other *** search
/ Enter 2006 October / Enter 10 2006.iso / Uzytki / Spiceworks Desktop 0.8.34 Beta / Spiceworks.exe / ruby / bin / gem < prev    next >
Encoding:
Text File  |  2006-05-26  |  564 b   |  18 lines

  1. #!/usr/bin/env ruby
  2.  
  3. require 'rubygems'
  4. Gem.manage_gems
  5.  
  6. required_version = Gem::Version::Requirement.new(">= 1.8.0")
  7. unless  required_version.satisfied_by?(Gem::Version.new(RUBY_VERSION))
  8.   puts "Expected Ruby Version #{required_version}, was #{RUBY_VERSION}"
  9.   exit(1)
  10. end
  11.  
  12. # We need to preserve the original ARGV to use for passing gem options
  13. # to source gems.  If there is a -- in the line, strip all options after
  14. # it...its for the source building process.
  15. args = !ARGV.include?("--") ? ARGV.clone : ARGV[0...ARGV.index("--")]
  16.  
  17. Gem::GemRunner.new.run(args)
  18.